package com.exahq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 
 * </p>
 *
 * @author lhq
 * @since 2021-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;
    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "电话号码不能为空")
    private String phone;

    @JsonFormat(pattern="yyyy-MM-dd")
    @TableField("up_date")
    private Date upDate;

    @JsonFormat(pattern="yyyy-MM-dd")
    @TableField("create_date")
    private Date createDate;

    @TableField("wxId")
    private Integer wxId;

    @TableField("openId")
    private String openId;

    @TableLogic
    private String delFlag;

    @TableField("uStatus")
    private Integer uStatus;


}
